home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Systemmonitors
/
Snoopy
/
Macros
/
main
next >
Wrap
Text File
|
1996-09-26
|
2KB
|
111 lines
prepare MACRO
lea (\1),a0
NEWLIST a0
ENDM
openlib MACRO
lea (\1Name),a1
moveq #0,d0
CALL OpenLibrary,<(execBase).w>
move.l d0,(\1Base)
beq .NODOSBASE
ENDM
closelb MACRO
move.l (\1Base),d0
beq.b .NO\1BASE
movea.l d0,a1
CALL CloseLibrary,<(execBase).w>
.NO\1BASE
ENDM
defs MACRO
xdef \1
\1 ds\0 \2
ENDM
remlist MACRO
lea (\1),a0
move.l #\2,d0
jsr RemoveList
ENDM
;-------------- give out a message in \1
SHOWMSG MACRO
lea (\1Msg,pc),a0
jsr ShowMessage
ENDM
SAVEREG MACRO
.Save\1L move.l (sregs_\1,a2),(a0)+
rts
.Save\1W move.w (sregs_\1,a2),(a0)+
rts
.Save\1B move.b (sregs_\1,a2),d0
ext.w d0
move.w d0,(a0)+
rts
.Save\1LB move.l (sregs_\1,a2),d0
bra .LONGBOOLEAN
.Save\1WB move.w (sregs_\1,a2),d0
bra .WORDBOOLEAN
.Save\1BB move.b (sregs_\1,a2),d0
ext.w d0
bra .WORDBOOLEAN
ENDM
REGLIST MACRO
.Jump\1 dc.l .SaveD0\2
dc.l .SaveD1\2
dc.l .SaveD2\2
dc.l .SaveD3\2
dc.l .SaveD4\2
dc.l .SaveD5\2
dc.l .SaveD6\2
dc.l .SaveD7\2
dc.l .SaveA0\2
dc.l .SaveA1\2
dc.l .SaveA2\2
dc.l .SaveA3\2
dc.l .SaveA4\2
dc.l .SaveA5\2
dc.l .SaveA5\2
dc.l .SaveA5\2
dc.l .SaveI0\2
dc.l .SaveI1\2
dc.l .SaveI2\2
dc.l .SaveI3\2
dc.l .SaveI4\2
dc.l .SaveI5\2
dc.l .SaveI6\2
dc.l .SaveI7\2
ENDM
SAVEDEBUGREGISTERS MACRO
move.l sregs_D0(a1),(a0)+
move.l sregs_D1(a1),(a0)+
move.l sregs_D2(a1),(a0)+
move.l sregs_D3(a1),(a0)+
move.l sregs_D4(a1),(a0)+
move.l sregs_D5(a1),(a0)+
move.l sregs_D6(a1),(a0)+
move.l sregs_D7(a1),(a0)+
move.l sregs_A0(a1),(a0)+
move.l sregs_A1(a1),(a0)+
move.l sregs_A2(a1),(a0)+
move.l sregs_A3(a1),(a0)+
move.l sregs_A4(a1),(a0)+
move.l sregs_A5(a1),(a0)+
move.l sregs_A6(a1),(a0)+
move.l sregs_A7(a1),(a0)+
move.l sregs_I0(a1),(a0)+
move.l sregs_I1(a1),(a0)+
move.l sregs_I2(a1),(a0)+
move.l sregs_I3(a1),(a0)+
move.l sregs_I4(a1),(a0)+
move.l sregs_I5(a1),(a0)+
move.l sregs_I6(a1),(a0)+
move.l sregs_I7(a1),(a0)+
ENDM